/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package controller;

import models.PostBO;

/**
 *
 * @author Liem
 */

public class EditConfessionAction {
    private String id;
    private String confess;
    private String returnUrl;

    public EditConfessionAction() {
    }

    public String execute() throws Exception {
        PostBO.updatePost(Integer.parseInt(id), confess);
        return "success";
    }

    public String getConfess() {
        return confess;
    }

    public void setConfess(String confess) {
        this.confess = confess;
    }

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getReturnUrl() {
        return returnUrl;
    }

    public void setReturnUrl(String returnUrl) {
        this.returnUrl = returnUrl;
    }

    
}